const person = {
  _name: "YunMu",
  get name() {
    return this._name;
  },
  set name(val) {
    this._name = val;
  },
};

const descriptor = Object.getOwnPropertyDescriptor(person, "name");
console.log("get.name:", descriptor.get.name); // get.name: get name
console.log("set.name:", descriptor.set.name); // set.name: set name
